/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class RegionCriteria extends AbstractORMCriteria {
	public final StringExpression re_numeroregion;
	public final StringExpression re_nombreRegion;
	
	public RegionCriteria(Criteria criteria) {
		super(criteria);
		re_numeroregion = new StringExpression("re_numeroregion", this);
		re_nombreRegion = new StringExpression("re_nombreRegion", this);
	}
	
	public RegionCriteria(PersistentSession session) {
		this(session.createCriteria(Region.class));
	}
	
	public RegionCriteria() throws PersistentException {
		this(orm.EvaluacionDocentePersistentManager.instance().getSession());
	}
	
	public EvaluacionCriteria createEvaluacionCriteria() {
		return new EvaluacionCriteria(createCriteria("ORM_Evaluacion"));
	}
	
	public ComunaCriteria createComunaCriteria() {
		return new ComunaCriteria(createCriteria("ORM_Comuna"));
	}
	
	public Region uniqueRegion() {
		return (Region) super.uniqueResult();
	}
	
	public Region[] listRegion() {
		java.util.List list = super.list();
		return (Region[]) list.toArray(new Region[list.size()]);
	}
}

